package dao;

import java.util.List;

import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

import bean.UserBean;

public class UserDao extends JdbcDaoSupport{

	public List<UserBean> getUserList() {
		
		String sql="select * from user";
		
		List<UserBean> userList=this.getJdbcTemplate().query(sql, new BeanPropertyRowMapper<UserBean>(UserBean.class));
		
		return userList;
	}
	
	
	
}
